﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class CameraController : MonoBehaviour {
    public GameObject player;
    public Vector3 offset;
	void LateUpdate () {
        if(player != null)
            transform.position = player.transform.position + offset;
        /*
        if(Input.GetKeyDown(KeyCode.L))
        {
            Vector3 badSpherePosR;
            for(int i=0;i<4;i++)
            {
                badSpherePosR = player.transform.InverseTransformPoint(envCtrler.plygrndCtrlers[0].badSpheres[i].transform.position);
                Debug.Log("badSpherePosR:"+badSpherePosR.ToString());
            }
        }*/
    }

}